export default {
  cartLength(state) {
    return state.cartList.length;
  },
  cartList(state) {
    return state.cartList;
  }
}

/* import { mapActions, mapGetters } from 'vuex'

methods: {
  ...mapActions(['addCart']),
  ...mapActions({
    addToCart: 'addCart'
  })
}

computed: {
  ...mapGetters(['cartList']),
  ...mapGetters({
    list: 'cartList'
  })
} */
